import sympy as sp
import numpy as np


def create_function(x, x0, f, g, h):
    f1 = sp.lambdify([x], f, 'numpy')
    g1 = sp.lambdify([x], g, 'numpy')
    h1 = sp.lambdify([x], h, 'numpy')
    return x0, f1, lambda x1: np.array(g1(x1)), h1
